import request from '@/utils/request'

// 查询事务所信息列表
export function listOfficeInformation(query) {
  return request({
    url: '/officeInformation/list',
    method: 'get',
    params: query
  })
}

// 查询事务所信息详细
export function getOfficeInformation(id) {
  return request({
    url: '/officeInformation/' + id,
    method: 'get'
  })
}

// 新增事务所信息
export function addOfficeInformation(data) {
  return request({
    url: '/officeInformation/',
    method: 'post',
    data: data
  })
}

// 修改事务所信息
export function updateOfficeInformation(data) {
  return request({
    url: '/officeInformation/',
    method: 'put',
    data: data
  })
}

// 删除事务所信息
export function delOfficeInformation(id) {
  return request({
    url: '/officeInformation/' + id,
    method: 'delete'
  })
}
